package com.neu.carbon.mes.domain;

import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.neu.common.annotation.Excel;
import com.neu.common.core.domain.BaseEntity;

/**
 * BOM单明细对象 mes_product_bom_detail
 * 
 * @author neuedu
 * @date 2024-03-02
 */
public class MesProductBomDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** bom单id */
    @Excel(name = "bom单id")
    private Long bomId;

    /** 物料id */
    @Excel(name = "物料id")
    private Long materialId;

    /** 用量 */
    @Excel(name = "用量")
    private Long usage;

    /** 产品 */
    @ApiModelProperty("产品")
    @Excel(name = "产品")
    private String name;

    /** 产品型号 */
    @ApiModelProperty("产品型号")
    @Excel(name = "产品型号")
    private String model;

    /** 产品规格 */
    @ApiModelProperty("产品规格")
    @Excel(name = "产品规格")
    private String specification;

    /** 产品单位 */
    @ApiModelProperty("产品单位")
    @Excel(name = "产品单位")
    private String unit;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setBomId(Long bomId) 
    {
        this.bomId = bomId;
    }

    public Long getBomId() 
    {
        return bomId;
    }
    public void setMaterialId(Long materialId) 
    {
        this.materialId = materialId;
    }

    public Long getMaterialId() 
    {
        return materialId;
    }
    public void setUsage(Long usage) 
    {
        this.usage = usage;
    }

    public Long getUsage() 
    {
        return usage;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setModel(String model)
    {
        this.model = model;
    }

    public String getModel()
    {
        return model;
    }
    public void setSpecification(String specification)
    {
        this.specification = specification;
    }

    public String getSpecification()
    {
        return specification;
    }
    public void setUnit(String unit)
    {
        this.unit = unit;
    }

    public String getUnit()
    {
        return unit;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("bomId", getBomId())
            .append("materialId", getMaterialId())
            .append("usage", getUsage())
            .append("remark", getRemark())
            .append("name", getName())
            .append("model", getModel())
            .append("specification", getSpecification())
            .append("unit", getUnit())
            .toString();
    }
}
